package langchain4j.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class PasswordUpdateDTO {
    @NotBlank(message = "当前密码不能为空")
    @JsonProperty("current_password")
    private String currentPassword;
    
    @NotBlank(message = "新密码不能为空")
    @Size(min = 8, max = 20, message = "密码长度需在8-20个字符之间")
    @JsonProperty("new_password")
    private String newPassword;
}